import router from "./router";
import { Message } from "element-ui";
import NProgress from "nprogress";
import "nprogress/nprogress.css";

NProgress.configure({ showSpinner: false });

// 允许所有路由都可访问，不需要权限和拦截
router.beforeEach((to, from, next) => {
  NProgress.start();
  next(); // 允许所有路由访问
});

router.afterEach(() => {
  NProgress.done();
});
